// Validate ADD form - identifiers
var v = new Validator('identifiers-add-form'); v.EnableMsgsTogether();

v.addValidation('identifiers[identifier_context]', 'required', 'Identifier Context - please enter data');
v.addValidation('identifiers[identifier_code]', 'required', 'Identifier Code - please enter data');
v.addValidation('identifiers[identifier_name]', 'required', 'Identifier Name - please enter data');
v.addValidation('identifiers[identifier_sql]', 'required', 'Identifier SQL - please enter data');
v.addValidation('identifiers[identifier_comments]', 'required', 'Identifier Comments - please enter data');

/**
* Extra validations - like Agreement
*/
function agreement()
{
	var success = false;
		// checked
		success = true;

	return(success);
}
//v.setAddnlValidationFunction(agreement);

// If jQuery validator is used
// $(document).ready(function(){ $("#identifiers-add-form").validate(); });